const { ccclass, property, menu } = cc._decorator;
import n from "./UiManage";
import l from "./MainUi";
import UiManager from "./UiManage";

@ccclass
@menu("UI/prefabs/MainUiCtrl")
export default class MainUiCtrl extends cc.Component {
  
    public ui = null;

    onLoad() {
        this.onUILoad();
        this.addButtonListen();
    }

    onUILoad() {
        this.ui = this.node.addComponent(l);
        UiManager.loaderView(this.node, "PandaTravel", null, 1, () => {
           UiManager.loaderView(this.node, "TopUi", null, 2);
        });
    }

    addButtonListen() {}

    initData() {}
}
